package cn.wolfcode.web.feign;


import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.OperateIntergralVo;
import cn.wolfcode.web.feign.fallback.IntergralFeginFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "intergral-service",fallback = IntergralFeginFallback.class)
public interface IntergralFeginApi {

    @RequestMapping("/intergral/decrIntergral")
    Result decrIntergral(@RequestBody OperateIntergralVo vo);

    @RequestMapping("/intergral/incrIntergral")
    Result incrIntergral(@RequestBody OperateIntergralVo vo);
}
